<?php
/**
 * The default template for displaying content. Used for both single and index/archive/search.
 *
 * @package WordPress
 * @subpackage Twenty_Twelve
 * @since Twenty Twelve 1.0
 */
?>

	<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
		<header class="entry-header">
			<?php if ( is_single() ) : ?>
			<h1 class="entry-title" style="width:100%;"><?php the_title(); ?></h1>
			<?php else : ?>
			<h1 class="entry-title" style="width:100%;">
				<a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title(); ?></a>
			</h1>
			<?php endif; // is_single() ?>
		</header><!-- .entry-header -->
        
        <div class="two_fifth" style="text-align:center;">
			<?php 
            if(has_post_thumbnail()){
                the_post_thumbnail(); 
            }else{
                echo wp_get_attachment_image(79,"full");
            }
            ?>
        </div>
        <div class="three_fifth last">
            <h3><?php  the_subtitle() ;?></h3>
    
            <?php if ( is_search() ) : // Only display Excerpts for Search ?>
            <div class="entry-summary">
                <?php the_excerpt(); ?>
            </div><!-- .entry-summary -->
            <?php else : ?>
            <div class="entry-content">
                <?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentytwelve' ) ); ?>
                <?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'twentytwelve' ), 'after' => '</div>' ) ); ?>
            </div><!-- .entry-content -->
            <?php endif; ?>
		</div>

		<footer class="entry-meta">
		</footer><!-- .entry-meta -->
	</article><!-- #post -->
